class Example{

  static def DisplayName(){
    println "this is method"
  }
  
  static void main(String[] args){

    test1(new File("F:/test/test.txt"))
  }
   static void test1(File file){
      file.listRoots().each{
      println it.absolutePath
      }
     
  }
  
  
  static void test(File file){
    file.eachLine{
      println "print: $it"
     }
  }
  

}